//
//  UIButton+Extension.swift
//  SinaWeiBo
//
//  Created by jiwang on 15/12/21.
//  Copyright © 2015年 jiwang. All rights reserved.
//

import UIKit

extension UIButton {
    
    convenience init(imageName : String ,title : String , fontSize : CGFloat) {
        self.init()
        
        setImage(UIImage(named: imageName), forState: UIControlState.Normal)
        
        titleLabel?.font = UIFont.systemFontOfSize(fontSize)
        
        setTitle(title, forState: UIControlState.Normal)
        
        setTitleColor(UIColor.lightGrayColor(), forState: UIControlState.Normal)
    }
}
